Fix CSE cluster creation when using VDC Groups #674
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to vmware/terraform-provider-vcd#1258, fixing it in PR vmware/terraform-provider-vcd#1266
The filter to retrieve the networks with the target VDC was wrong, as it was using
ownerRef.id
instead oforgVdc.id
:orgVdc.id
and_context==includeAccessible
so this patch mimics this logic hereownerRef.id
is not a VDC anymore (urn:vcloud:vdc
), but a VDC Group (urn:vcloud:vdcGroup
). Hence the filter returned 0 networks with the desired VDC ID.CSE tests passed in VCD 10.5.1 with CSE 4.2.1